package com.ruoyi.classification.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品分类对象 commodity_product_class
 * 
 * @author kzc
 * @date 2024-03-09
 */
public class CommodityProductClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品分类id */
    private Integer categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 上级分类id */
    @Excel(name = "上级分类id")
    private Integer parentId;

    /** 分类图片id */
    @Excel(name = "分类图片id")
    private Integer imageId;

    /** 序方式(数字越小越靠前) */
    @Excel(name = "序方式(数字越小越靠前)")
    private Integer sort;

    /** 应用id */
    @Excel(name = "应用id")
    private Integer appId;

    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentId(Integer parentId) 
    {
        this.parentId = parentId;
    }

    public Integer getParentId() 
    {
        return parentId;
    }
    public void setImageId(Integer imageId) 
    {
        this.imageId = imageId;
    }

    public Integer getImageId() 
    {
        return imageId;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setAppId(Integer appId) 
    {
        this.appId = appId;
    }

    public Integer getAppId() 
    {
        return appId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("imageId", getImageId())
            .append("sort", getSort())
            .append("appId", getAppId())
            .toString();
    }
}
